<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
${pu:reqSet('appKeyValue', pu:menuOption('SystemValue', 'tmall_appKey')) }
<h1>
更新淘宝商城授权
</h1>
<br/>
${message }
<br/>
<br/>
<script>
function checkSubmit(){
	if(confirm('确认更新授权?')){
		document.submitForm.submit();
	}else{
		
	}
}
</script>
<a href="http://my.open.taobao.com/auth/authorize.htm?appkey=${appKeyValue.memo1 }" target="_blank">前往取得授权码</a>
<form action="<c-rt:url value="/tmall/updateSessionKey.do"/>" name="submitForm">
<input type="text" name="authcode" size="100"/><input type="button" value="更新" onclick="checkSubmit()"/>
</form>